Performance Analysis and Measurement

IMPORTANT

Performance Analysis and Measurement: Overview

This topic covers concepts, such as Time Complexity, Big-O Notation for Complexity class, Time versus Space Complexity, Worst versus average Complexity, Constant Time Complexity, Concrete Measures for Performance, Linear Time Complexity, etc.

Important Questions on Performance Analysis and Measurement

MEDIUM
IMPORTANT

The _________ of the algorithm is the function defined by the average number of steps taken on any instance of size n.

HARD
IMPORTANT

int i=0; 
  while(i<5){ //runs 5 times 
    i++; 
  } 

 time complexity of the loop is

MEDIUM
IMPORTANT

The lenear time complexity is named as linear because its time complexity is of the order of .

MEDIUM
IMPORTANT

 If for an algorithm time complexity is given by O(n) then complexityof it is:

MEDIUM
IMPORTANT

The general step wise procedure for Big-O runtime analysis :

  1. Eliminate all excluding the highest order terms.
  2. Express the maximum number of operations, the algorithm performs in terms of n.
  3. Figure out what the input is and what n represents.
  4. Remove all the constant factors.

Correct the Sequence

MEDIUM
IMPORTANT

To measure Time complexity of an algorithm Big O notation is used which:

MEDIUM
IMPORTANT

 To calculate the running time find the maximum number of nested loops that go through a significant portion of the Output.

MEDIUM
IMPORTANT

The complexity of Binary search algorithm is

EASY
IMPORTANT

The big-O value of O(1) is also called ______.